home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / Make / source / glob / configure < prev    next >
Encoding:
Text File  |  1997-09-16  |  60.7 KB  |  2,056 lines

  1. #! /bin/sh
  2.  
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated automatically using autoconf version 2.12 
  5. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  6. #
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9.  
  10. # Defaults:
  11. ac_help=
  12. ac_default_prefix=/usr/local
  13. # Any additions from configure.in:
  14.  
  15. # Initialize some variables set by options.
  16. # The variables have the same names as the options, with
  17. # dashes changed to underlines.
  18. build=NONE
  19. cache_file=./config.cache
  20. exec_prefix=NONE
  21. host=NONE
  22. no_create=
  23. nonopt=NONE
  24. no_recursion=
  25. prefix=NONE
  26. program_prefix=NONE
  27. program_suffix=NONE
  28. program_transform_name=s,x,x,
  29. silent=
  30. site=
  31. srcdir=
  32. target=NONE
  33. verbose=
  34. x_includes=NONE
  35. x_libraries=NONE
  36. bindir='${exec_prefix}/bin'
  37. sbindir='${exec_prefix}/sbin'
  38. libexecdir='${exec_prefix}/libexec'
  39. datadir='${prefix}/share'
  40. sysconfdir='${prefix}/etc'
  41. sharedstatedir='${prefix}/com'
  42. localstatedir='${prefix}/var'
  43. libdir='${exec_prefix}/lib'
  44. includedir='${prefix}/include'
  45. oldincludedir='/usr/include'
  46. infodir='${prefix}/info'
  47. mandir='${prefix}/man'
  48.  
  49. # Initialize some other variables.
  50. subdirs=
  51. MFLAGS= MAKEFLAGS=
  52. # Maximum number of lines to put in a shell here document.
  53. ac_max_here_lines=12
  54.  
  55. ac_prev=
  56. for ac_option
  57. do
  58.  
  59.   # If the previous option needs an argument, assign it.
  60.   if test -n "$ac_prev"; then
  61.     eval "$ac_prev=\$ac_option"
  62.     ac_prev=
  63.     continue
  64.   fi
  65.  
  66.   case "$ac_option" in
  67.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  68.   *) ac_optarg= ;;
  69.   esac
  70.  
  71.   # Accept the important Cygnus configure options, so we can diagnose typos.
  72.  
  73.   case "$ac_option" in
  74.  
  75.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  76.     ac_prev=bindir ;;
  77.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  78.     bindir="$ac_optarg" ;;
  79.  
  80.   -build | --build | --buil | --bui | --bu)
  81.     ac_prev=build ;;
  82.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  83.     build="$ac_optarg" ;;
  84.  
  85.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  86.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  87.     ac_prev=cache_file ;;
  88.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  89.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  90.     cache_file="$ac_optarg" ;;
  91.  
  92.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  93.     ac_prev=datadir ;;
  94.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  95.   | --da=*)
  96.     datadir="$ac_optarg" ;;
  97.  
  98.   -disable-* | --disable-*)
  99.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  100.     # Reject names that are not valid shell variable names.
  101.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  102.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  103.     fi
  104.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  105.     eval "enable_${ac_feature}=no" ;;
  106.  
  107.   -enable-* | --enable-*)
  108.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  109.     # Reject names that are not valid shell variable names.
  110.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  111.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  112.     fi
  113.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  114.     case "$ac_option" in
  115.       *=*) ;;
  116.       *) ac_optarg=yes ;;
  117.     esac
  118.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  119.  
  120.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  121.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  122.   | --exec | --exe | --ex)
  123.     ac_prev=exec_prefix ;;
  124.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  125.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  126.   | --exec=* | --exe=* | --ex=*)
  127.     exec_prefix="$ac_optarg" ;;
  128.  
  129.   -gas | --gas | --ga | --g)
  130.     # Obsolete; use --with-gas.
  131.     with_gas=yes ;;
  132.  
  133.   -help | --help | --hel | --he)
  134.     # Omit some internal or obsolete options to make the list less imposing.
  135.     # This message is too long to be a string in the A/UX 3.1 sh.
  136.     cat << EOF
  137. Usage: configure [options] [host]
  138. Options: [defaults in brackets after descriptions]
  139. Configuration:
  140.   --cache-file=FILE       cache test results in FILE
  141.   --help                  print this message
  142.   --no-create             do not create output files
  143.   --quiet, --silent       do not print \`checking...' messages
  144.   --version               print the version of autoconf that created configure
  145. Directory and file names:
  146.   --prefix=PREFIX         install architecture-independent files in PREFIX
  147.                           [$ac_default_prefix]
  148.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  149.                           [same as prefix]
  150.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  151.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  152.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  153.   --datadir=DIR           read-only architecture-independent data in DIR
  154.                           [PREFIX/share]
  155.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  156.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  157.                           [PREFIX/com]
  158.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  159.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  160.   --includedir=DIR        C header files in DIR [PREFIX/include]
  161.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  162.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  163.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  164.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  165.   --program-prefix=PREFIX prepend PREFIX to installed program names
  166.   --program-suffix=SUFFIX append SUFFIX to installed program names
  167.   --program-transform-name=PROGRAM
  168.                           run sed PROGRAM on installed program names
  169. EOF
  170.     cat << EOF
  171. Host type:
  172.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  173.   --host=HOST             configure for HOST [guessed]
  174.   --target=TARGET         configure for TARGET [TARGET=HOST]
  175. Features and packages:
  176.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  177.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  178.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  179.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  180.   --x-includes=DIR        X include files are in DIR
  181.   --x-libraries=DIR       X library files are in DIR
  182. EOF
  183.     if test -n "$ac_help"; then
  184.       echo "--enable and --with options recognized:$ac_help"
  185.     fi
  186.     exit 0 ;;
  187.  
  188.   -host | --host | --hos | --ho)
  189.     ac_prev=host ;;
  190.   -host=* | --host=* | --hos=* | --ho=*)
  191.     host="$ac_optarg" ;;
  192.  
  193.   -includedir | --includedir | --includedi | --included | --include \
  194.   | --includ | --inclu | --incl | --inc)
  195.     ac_prev=includedir ;;
  196.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  197.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  198.     includedir="$ac_optarg" ;;
  199.  
  200.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  201.     ac_prev=infodir ;;
  202.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  203.     infodir="$ac_optarg" ;;
  204.  
  205.   -libdir | --libdir | --libdi | --libd)
  206.     ac_prev=libdir ;;
  207.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  208.     libdir="$ac_optarg" ;;
  209.  
  210.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  211.   | --libexe | --libex | --libe)
  212.     ac_prev=libexecdir ;;
  213.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  214.   | --libexe=* | --libex=* | --libe=*)
  215.     libexecdir="$ac_optarg" ;;
  216.  
  217.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  218.   | --localstate | --localstat | --localsta | --localst \
  219.   | --locals | --local | --loca | --loc | --lo)
  220.     ac_prev=localstatedir ;;
  221.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  222.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  223.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  224.     localstatedir="$ac_optarg" ;;
  225.  
  226.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  227.     ac_prev=mandir ;;
  228.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  229.     mandir="$ac_optarg" ;;
  230.  
  231.   -nfp | --nfp | --nf)
  232.     # Obsolete; use --without-fp.
  233.     with_fp=no ;;
  234.  
  235.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  236.   | --no-cr | --no-c)
  237.     no_create=yes ;;
  238.  
  239.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  240.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  241.     no_recursion=yes ;;
  242.  
  243.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  244.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  245.   | --oldin | --oldi | --old | --ol | --o)
  246.     ac_prev=oldincludedir ;;
  247.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  248.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  249.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  250.     oldincludedir="$ac_optarg" ;;
  251.  
  252.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  253.     ac_prev=prefix ;;
  254.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  255.     prefix="$ac_optarg" ;;
  256.  
  257.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  258.   | --program-pre | --program-pr | --program-p)
  259.     ac_prev=program_prefix ;;
  260.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  261.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  262.     program_prefix="$ac_optarg" ;;
  263.  
  264.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  265.   | --program-suf | --program-su | --program-s)
  266.     ac_prev=program_suffix ;;
  267.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  268.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  269.     program_suffix="$ac_optarg" ;;
  270.  
  271.   -program-transform-name | --program-transform-name \
  272.   | --program-transform-nam | --program-transform-na \
  273.   | --program-transform-n | --program-transform- \
  274.   | --program-transform | --program-transfor \
  275.   | --program-transfo | --program-transf \
  276.   | --program-trans | --program-tran \
  277.   | --progr-tra | --program-tr | --program-t)
  278.     ac_prev=program_transform_name ;;
  279.   -program-transform-name=* | --program-transform-name=* \
  280.   | --program-transform-nam=* | --program-transform-na=* \
  281.   | --program-transform-n=* | --program-transform-=* \
  282.   | --program-transform=* | --program-transfor=* \
  283.   | --program-transfo=* | --program-transf=* \
  284.   | --program-trans=* | --program-tran=* \
  285.   | --progr-tra=* | --program-tr=* | --program-t=*)
  286.     program_transform_name="$ac_optarg" ;;
  287.  
  288.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  289.   | -silent | --silent | --silen | --sile | --sil)
  290.     silent=yes ;;
  291.  
  292.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  293.     ac_prev=sbindir ;;
  294.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  295.   | --sbi=* | --sb=*)
  296.     sbindir="$ac_optarg" ;;
  297.  
  298.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  299.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  300.   | --sharedst | --shareds | --shared | --share | --shar \
  301.   | --sha | --sh)
  302.     ac_prev=sharedstatedir ;;
  303.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  304.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  305.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  306.   | --sha=* | --sh=*)
  307.     sharedstatedir="$ac_optarg" ;;
  308.  
  309.   -site | --site | --sit)
  310.     ac_prev=site ;;
  311.   -site=* | --site=* | --sit=*)
  312.     site="$ac_optarg" ;;
  313.  
  314.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  315.     ac_prev=srcdir ;;
  316.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  317.     srcdir="$ac_optarg" ;;
  318.  
  319.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  320.   | --syscon | --sysco | --sysc | --sys | --sy)
  321.     ac_prev=sysconfdir ;;
  322.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  323.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  324.     sysconfdir="$ac_optarg" ;;
  325.  
  326.   -target | --target | --targe | --targ | --tar | --ta | --t)
  327.     ac_prev=target ;;
  328.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  329.     target="$ac_optarg" ;;
  330.  
  331.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  332.     verbose=yes ;;
  333.  
  334.   -version | --version | --versio | --versi | --vers)
  335.     echo "configure generated by autoconf version 2.12"
  336.     exit 0 ;;
  337.  
  338.   -with-* | --with-*)
  339.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  340.     # Reject names that are not valid shell variable names.
  341.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  342.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  343.     fi
  344.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  345.     case "$ac_option" in
  346.       *=*) ;;
  347.       *) ac_optarg=yes ;;
  348.     esac
  349.     eval "with_${ac_package}='$ac_optarg'" ;;
  350.  
  351.   -without-* | --without-*)
  352.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  353.     # Reject names that are not valid shell variable names.
  354.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  355.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  356.     fi
  357.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  358.     eval "with_${ac_package}=no" ;;
  359.  
  360.   --x)
  361.     # Obsolete; use --with-x.
  362.     with_x=yes ;;
  363.  
  364.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  365.   | --x-incl | --x-inc | --x-in | --x-i)
  366.     ac_prev=x_includes ;;
  367.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  368.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  369.     x_includes="$ac_optarg" ;;
  370.  
  371.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  372.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  373.     ac_prev=x_libraries ;;
  374.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  375.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  376.     x_libraries="$ac_optarg" ;;
  377.  
  378.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  379.     ;;
  380.  
  381.   *)
  382.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  383.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  384.     fi
  385.     if test "x$nonopt" != xNONE; then
  386.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  387.     fi
  388.     nonopt="$ac_option"
  389.     ;;
  390.  
  391.   esac
  392. done
  393.  
  394. if test -n "$ac_prev"; then
  395.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  396. fi
  397.  
  398. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  399.  
  400. # File descriptor usage:
  401. # 0 standard input
  402. # 1 file creation
  403. # 2 errors and warnings
  404. # 3 some systems may open it to /dev/tty
  405. # 4 used on the Kubota Titan
  406. # 6 checking for... messages and results
  407. # 5 compiler messages saved in config.log
  408. if test "$silent" = yes; then
  409.   exec 6>/dev/null
  410. else
  411.   exec 6>&1
  412. fi
  413. exec 5>./config.log
  414.  
  415. echo "\
  416. This file contains any messages produced by compilers while
  417. running configure, to aid debugging if configure makes a mistake.
  418. " 1>&5
  419.  
  420. # Strip out --no-create and --no-recursion so they do not pile up.
  421. # Also quote any args containing shell metacharacters.
  422. ac_configure_args=
  423. for ac_arg
  424. do
  425.   case "$ac_arg" in
  426.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  427.   | --no-cr | --no-c) ;;
  428.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  430.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  431.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  432.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  433.   esac
  434. done
  435.  
  436. # NLS nuisances.
  437. # Only set these to C if already set.  These must not be set unconditionally
  438. # because not all systems understand e.g. LANG=C (notably SCO).
  439. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  440. # Non-C LC_CTYPE values break the ctype check.
  441. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  442. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  443. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  444. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  445.  
  446. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  447. rm -rf conftest* confdefs.h
  448. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  449. echo > confdefs.h
  450.  
  451. # A filename unique to this package, relative to the directory that
  452. # configure is in, which we can look for to find out if srcdir is correct.
  453. ac_unique_file=fnmatch.c
  454.  
  455. # Find the source files, if location was not specified.
  456. if test -z "$srcdir"; then
  457.   ac_srcdir_defaulted=yes
  458.   # Try the directory containing this script, then its parent.
  459.   ac_prog=$0
  460.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  461.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  462.   srcdir=$ac_confdir
  463.   if test ! -r $srcdir/$ac_unique_file; then
  464.     srcdir=..
  465.   fi
  466. else
  467.   ac_srcdir_defaulted=no
  468. fi
  469. if test ! -r $srcdir/$ac_unique_file; then
  470.   if test "$ac_srcdir_defaulted" = yes; then
  471.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  472.   else
  473.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  474.   fi
  475. fi
  476. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  477.  
  478. # Prefer explicitly selected file to automatically selected ones.
  479. if test -z "$CONFIG_SITE"; then
  480.   if test "x$prefix" != xNONE; then
  481.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  482.   else
  483.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  484.   fi
  485. fi
  486. for ac_site_file in $CONFIG_SITE; do
  487.   if test -r "$ac_site_file"; then
  488.     echo "loading site script $ac_site_file"
  489.     . "$ac_site_file"
  490.   fi
  491. done
  492.  
  493. if test -r "$cache_file"; then
  494.   echo "loading cache $cache_file"
  495.   . $cache_file
  496. else
  497.   echo "creating cache $cache_file"
  498.   > $cache_file
  499. fi
  500.  
  501. ac_ext=c
  502. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  503. ac_cpp='$CPP $CPPFLAGS'
  504. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  505. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  506. cross_compiling=$ac_cv_prog_cc_cross
  507.  
  508. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  509.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  510.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  511.     ac_n= ac_c='
  512. ' ac_t='    '
  513.   else
  514.     ac_n=-n ac_c= ac_t=
  515.   fi
  516. else
  517.   ac_n= ac_c='\c' ac_t=
  518. fi
  519.  
  520.                     
  521. ac_aux_dir=
  522. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  523.   if test -f $ac_dir/install-sh; then
  524.     ac_aux_dir=$ac_dir
  525.     ac_install_sh="$ac_aux_dir/install-sh -c"
  526.     break
  527.   elif test -f $ac_dir/install.sh; then
  528.     ac_aux_dir=$ac_dir
  529.     ac_install_sh="$ac_aux_dir/install.sh -c"
  530.     break
  531.   fi
  532. done
  533. if test -z "$ac_aux_dir"; then
  534.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  535. fi
  536. ac_config_guess=$ac_aux_dir/config.guess
  537. ac_config_sub=$ac_aux_dir/config.sub
  538. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  539.  
  540. # Find a good install program.  We prefer a C program (faster),
  541. # so one script is as good as another.  But avoid the broken or
  542. # incompatible versions:
  543. # SysV /etc/install, /usr/sbin/install
  544. # SunOS /usr/etc/install
  545. # IRIX /sbin/install
  546. # AIX /bin/install
  547. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  548. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  549. # ./install, which can be erroneously created by make from ./install.sh.
  550. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  551. echo "configure:552: checking for a BSD compatible install" >&5
  552. if test -z "$INSTALL"; then
  553. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  554.   echo $ac_n "(cached) $ac_c" 1>&6
  555. else
  556.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
  557.   for ac_dir in $PATH; do
  558.     # Account for people who put trailing slashes in PATH elements.
  559.     case "$ac_dir/" in
  560.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  561.     *)
  562.       # OSF1 and SCO ODT 3.0 have their own names for install.
  563.       for ac_prog in ginstall installbsd scoinst install; do
  564.         if test -f $ac_dir/$ac_prog; then
  565.       if test $ac_prog = install &&
  566.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  567.         # AIX install.  It has an incompatible calling convention.
  568.         # OSF/1 installbsd also uses dspmsg, but is usable.
  569.         :
  570.       else
  571.         ac_cv_path_install="$ac_dir/$ac_prog -c"
  572.         break 2
  573.       fi
  574.     fi
  575.       done
  576.       ;;
  577.     esac
  578.   done
  579.   IFS="$ac_save_IFS"
  580.  
  581. fi
  582.   if test "${ac_cv_path_install+set}" = set; then
  583.     INSTALL="$ac_cv_path_install"
  584.   else
  585.     # As a last resort, use the slow shell script.  We don't cache a
  586.     # path for INSTALL within a source directory, because that will
  587.     # break other packages using the cache if that directory is
  588.     # removed, or if the path is relative.
  589.     INSTALL="$ac_install_sh"
  590.   fi
  591. fi
  592. echo "$ac_t""$INSTALL" 1>&6
  593.  
  594. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  595. # It thinks the first close brace ends the variable substitution.
  596. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  597.  
  598. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  599.  
  600.  
  601. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  602.  
  603.  
  604. PACKAGE=glob
  605.  
  606. VERSION=0.0
  607.  
  608. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  609.   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  610. fi
  611.  
  612. echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  613. echo "configure:614: checking whether build environment is sane" >&5
  614. # Just in case
  615. sleep 1
  616. echo timestamp > conftestfile
  617. # Do `set' in a subshell so we don't clobber the current shell's
  618. # arguments.  Must try -L first in case configure is actually a
  619. # symlink; some systems play weird games with the mod time of symlinks
  620. # (eg FreeBSD returns the mod time of the symlink's containing
  621. # directory).
  622. if (
  623.    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  624.    if test "" = "X"; then
  625.       # -L didn't work.
  626.       set X `ls -t $srcdir/configure conftestfile`
  627.    fi
  628.    test "$2" = conftestfile
  629.    )
  630. then
  631.    # Ok.
  632.    :
  633. else
  634.    { echo "configure: error: newly created file is older than distributed files!
  635. Check your system clock" 1>&2; exit 1; }
  636. fi
  637. rm -f conftest*
  638. echo "$ac_t""yes" 1>&6
  639. if test "$program_transform_name" = s,x,x,; then
  640.   program_transform_name=
  641. else
  642.   # Double any \ or $.  echo might interpret backslashes.
  643.   cat <<\EOF_SED > conftestsed
  644. s,\\,\\\\,g; s,\$,$$,g
  645. EOF_SED
  646.   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  647.   rm -f conftestsed
  648. fi
  649. test "$program_prefix" != NONE &&
  650.   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  651. # Use a double $ so make ignores it.
  652. test "$program_suffix" != NONE &&
  653.   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  654.  
  655. # sed with no file args requires a program.
  656. test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  657.  
  658. missing_dir=`cd $ac_aux_dir && pwd`
  659. echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  660. echo "configure:661: checking for working aclocal" >&5
  661. # Run test in a subshell; some versions of sh will print an error if
  662. # an executable is not found, even if stderr is redirected.
  663. # Redirect stdin to placate older versions of autoconf.  Sigh.
  664. if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  665.    ACLOCAL=aclocal
  666.    echo "$ac_t""found" 1>&6
  667. else
  668.    ACLOCAL="$missing_dir/missing aclocal"
  669.    echo "$ac_t""missing" 1>&6
  670. fi
  671.  
  672. echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  673. echo "configure:674: checking for working autoconf" >&5
  674. # Run test in a subshell; some versions of sh will print an error if
  675. # an executable is not found, even if stderr is redirected.
  676. # Redirect stdin to placate older versions of autoconf.  Sigh.
  677. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  678.    AUTOCONF=autoconf
  679.    echo "$ac_t""found" 1>&6
  680. else
  681.    AUTOCONF="$missing_dir/missing autoconf"
  682.    echo "$ac_t""missing" 1>&6
  683. fi
  684.  
  685. echo $ac_n "checking for working automake""... $ac_c" 1>&6
  686. echo "configure:687: checking for working automake" >&5
  687. # Run test in a subshell; some versions of sh will print an error if
  688. # an executable is not found, even if stderr is redirected.
  689. # Redirect stdin to placate older versions of autoconf.  Sigh.
  690. if (automake --version) < /dev/null > /dev/null 2>&1; then
  691.    AUTOMAKE=automake
  692.    echo "$ac_t""found" 1>&6
  693. else
  694.    AUTOMAKE="$missing_dir/missing automake"
  695.    echo "$ac_t""missing" 1>&6
  696. fi
  697.  
  698. echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  699. echo "configure:700: checking for working autoheader" >&5
  700. # Run test in a subshell; some versions of sh will print an error if
  701. # an executable is not found, even if stderr is redirected.
  702. # Redirect stdin to placate older versions of autoconf.  Sigh.
  703. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  704.    AUTOHEADER=autoheader
  705.    echo "$ac_t""found" 1>&6
  706. else
  707.    AUTOHEADER="$missing_dir/missing autoheader"
  708.    echo "$ac_t""missing" 1>&6
  709. fi
  710.  
  711. echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  712. echo "configure:713: checking for working makeinfo" >&5
  713. # Run test in a subshell; some versions of sh will print an error if
  714. # an executable is not found, even if stderr is redirected.
  715. # Redirect stdin to placate older versions of autoconf.  Sigh.
  716. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  717.    MAKEINFO=makeinfo
  718.    echo "$ac_t""found" 1>&6
  719. else
  720.    MAKEINFO="$missing_dir/missing makeinfo"
  721.    echo "$ac_t""missing" 1>&6
  722. fi
  723.  
  724. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  725. echo "configure:726: checking whether ${MAKE-make} sets \${MAKE}" >&5
  726. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  727. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  728.   echo $ac_n "(cached) $ac_c" 1>&6
  729. else
  730.   cat > conftestmake <<\EOF
  731. all:
  732.     @echo 'ac_maketemp="${MAKE}"'
  733. EOF
  734. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  735. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  736. if test -n "$ac_maketemp"; then
  737.   eval ac_cv_prog_make_${ac_make}_set=yes
  738. else
  739.   eval ac_cv_prog_make_${ac_make}_set=no
  740. fi
  741. rm -f conftestmake
  742. fi
  743. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  744.   echo "$ac_t""yes" 1>&6
  745.   SET_MAKE=
  746. else
  747.   echo "$ac_t""no" 1>&6
  748.   SET_MAKE="MAKE=${MAKE-make}"
  749. fi
  750.  
  751.  
  752. # Extract the first word of "gcc", so it can be a program name with args.
  753. set dummy gcc; ac_word=$2
  754. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  755. echo "configure:756: checking for $ac_word" >&5
  756. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  757.   echo $ac_n "(cached) $ac_c" 1>&6
  758. else
  759.   if test -n "$CC"; then
  760.   ac_cv_prog_CC="$CC" # Let the user override the test.
  761. else
  762.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  763.   for ac_dir in $PATH; do
  764.     test -z "$ac_dir" && ac_dir=.
  765.     if test -f $ac_dir/$ac_word; then
  766.       ac_cv_prog_CC="gcc"
  767.       break
  768.     fi
  769.   done
  770.   IFS="$ac_save_ifs"
  771. fi
  772. fi
  773. CC="$ac_cv_prog_CC"
  774. if test -n "$CC"; then
  775.   echo "$ac_t""$CC" 1>&6
  776. else
  777.   echo "$ac_t""no" 1>&6
  778. fi
  779.  
  780. if test -z "$CC"; then
  781.   # Extract the first word of "cc", so it can be a program name with args.
  782. set dummy cc; ac_word=$2
  783. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  784. echo "configure:785: checking for $ac_word" >&5
  785. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  786.   echo $ac_n "(cached) $ac_c" 1>&6
  787. else
  788.   if test -n "$CC"; then
  789.   ac_cv_prog_CC="$CC" # Let the user override the test.
  790. else
  791.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  792.   ac_prog_rejected=no
  793.   for ac_dir in $PATH; do
  794.     test -z "$ac_dir" && ac_dir=.
  795.     if test -f $ac_dir/$ac_word; then
  796.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  797.         ac_prog_rejected=yes
  798.     continue
  799.       fi
  800.       ac_cv_prog_CC="cc"
  801.       break
  802.     fi
  803.   done
  804.   IFS="$ac_save_ifs"
  805. if test $ac_prog_rejected = yes; then
  806.   # We found a bogon in the path, so make sure we never use it.
  807.   set dummy $ac_cv_prog_CC
  808.   shift
  809.   if test $# -gt 0; then
  810.     # We chose a different compiler from the bogus one.
  811.     # However, it has the same basename, so the bogon will be chosen
  812.     # first if we set CC to just the basename; use the full file name.
  813.     shift
  814.     set dummy "$ac_dir/$ac_word" "$@"
  815.     shift
  816.     ac_cv_prog_CC="$@"
  817.   fi
  818. fi
  819. fi
  820. fi
  821. CC="$ac_cv_prog_CC"
  822. if test -n "$CC"; then
  823.   echo "$ac_t""$CC" 1>&6
  824. else
  825.   echo "$ac_t""no" 1>&6
  826. fi
  827.  
  828.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  829. fi
  830.  
  831. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  832. echo "configure:833: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  833.  
  834. ac_ext=c
  835. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  836. ac_cpp='$CPP $CPPFLAGS'
  837. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  838. ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  839. cross_compiling=$ac_cv_prog_cc_cross
  840.  
  841. cat > conftest.$ac_ext <<EOF
  842. #line 843 "configure"
  843. #include "confdefs.h"
  844. main(){return(0);}
  845. EOF
  846. if { (eval echo configure:847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  847.   ac_cv_prog_cc_works=yes
  848.   # If we can't run a trivial program, we are probably using a cross compiler.
  849.   if (./conftest; exit) 2>/dev/null; then
  850.     ac_cv_prog_cc_cross=no
  851.   else
  852.     ac_cv_prog_cc_cross=yes
  853.   fi
  854. else
  855.   echo "configure: failed program was:" >&5
  856.   cat conftest.$ac_ext >&5
  857.   ac_cv_prog_cc_works=no
  858. fi
  859. rm -fr conftest*
  860.  
  861. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  862. if test $ac_cv_prog_cc_works = no; then
  863.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  864. fi
  865. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  866. echo "configure:867: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  867. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  868. cross_compiling=$ac_cv_prog_cc_cross
  869.  
  870. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  871. echo "configure:872: checking whether we are using GNU C" >&5
  872. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  873.   echo $ac_n "(cached) $ac_c" 1>&6
  874. else
  875.   cat > conftest.c <<EOF
  876. #ifdef __GNUC__
  877.   yes;
  878. #endif
  879. EOF
  880. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  881.   ac_cv_prog_gcc=yes
  882. else
  883.   ac_cv_prog_gcc=no
  884. fi
  885. fi
  886.  
  887. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  888.  
  889. if test $ac_cv_prog_gcc = yes; then
  890.   GCC=yes
  891.   ac_test_CFLAGS="${CFLAGS+set}"
  892.   ac_save_CFLAGS="$CFLAGS"
  893.   CFLAGS=
  894.   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  895. echo "configure:896: checking whether ${CC-cc} accepts -g" >&5
  896. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  897.   echo $ac_n "(cached) $ac_c" 1>&6
  898. else
  899.   echo 'void f(){}' > conftest.c
  900. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  901.   ac_cv_prog_cc_g=yes
  902. else
  903.   ac_cv_prog_cc_g=no
  904. fi
  905. rm -f conftest*
  906.  
  907. fi
  908.  
  909. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  910.   if test "$ac_test_CFLAGS" = set; then
  911.     CFLAGS="$ac_save_CFLAGS"
  912.   elif test $ac_cv_prog_cc_g = yes; then
  913.     CFLAGS="-g -O2"
  914.   else
  915.     CFLAGS="-O2"
  916.   fi
  917. else
  918.   GCC=
  919.   test "${CFLAGS+set}" = set || CFLAGS="-g"
  920. fi
  921.  
  922. # Extract the first word of "ar", so it can be a program name with args.
  923. set dummy ar; ac_word=$2
  924. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  925. echo "configure:926: checking for $ac_word" >&5
  926. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  927.   echo $ac_n "(cached) $ac_c" 1>&6
  928. else
  929.   if test -n "$AR"; then
  930.   ac_cv_prog_AR="$AR" # Let the user override the test.
  931. else
  932.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  933.   for ac_dir in $PATH; do
  934.     test -z "$ac_dir" && ac_dir=.
  935.     if test -f $ac_dir/$ac_word; then
  936.       ac_cv_prog_AR="ar"
  937.       break
  938.     fi
  939.   done
  940.   IFS="$ac_save_ifs"
  941.   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  942. fi
  943. fi
  944. AR="$ac_cv_prog_AR"
  945. if test -n "$AR"; then
  946.   echo "$ac_t""$AR" 1>&6
  947. else
  948.   echo "$ac_t""no" 1>&6
  949. fi
  950.  
  951. # Extract the first word of "ranlib", so it can be a program name with args.
  952. set dummy ranlib; ac_word=$2
  953. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  954. echo "configure:955: checking for $ac_word" >&5
  955. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  956.   echo $ac_n "(cached) $ac_c" 1>&6
  957. else
  958.   if test -n "$RANLIB"; then
  959.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  960. else
  961.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  962.   for ac_dir in $PATH; do
  963.     test -z "$ac_dir" && ac_dir=.
  964.     if test -f $ac_dir/$ac_word; then
  965.       ac_cv_prog_RANLIB="ranlib"
  966.       break
  967.     fi
  968.   done
  969.   IFS="$ac_save_ifs"
  970.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  971. fi
  972. fi
  973. RANLIB="$ac_cv_prog_RANLIB"
  974. if test -n "$RANLIB"; then
  975.   echo "$ac_t""$RANLIB" 1>&6
  976. else
  977.   echo "$ac_t""no" 1>&6
  978. fi
  979.  
  980. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  981. echo "configure:982: checking how to run the C preprocessor" >&5
  982. # On Suns, sometimes $CPP names a directory.
  983. if test -n "$CPP" && test -d "$CPP"; then
  984.   CPP=
  985. fi
  986. if test -z "$CPP"; then
  987. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  988.   echo $ac_n "(cached) $ac_c" 1>&6
  989. else
  990.     # This must be in double quotes, not single quotes, because CPP may get
  991.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  992.   CPP="${CC-cc} -E"
  993.   # On the NeXT, cc -E runs the code through the compiler's parser,
  994.   # not just through cpp.
  995.   cat > conftest.$ac_ext <<EOF
  996. #line 997 "configure"
  997. #include "confdefs.h"
  998. #include <assert.h>
  999. Syntax Error
  1000. EOF
  1001. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1002. { (eval echo configure:1003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1003. ac_err=`grep -v '^ *+' conftest.out`
  1004. if test -z "$ac_err"; then
  1005.   :
  1006. else
  1007.   echo "$ac_err" >&5
  1008.   echo "configure: failed program was:" >&5
  1009.   cat conftest.$ac_ext >&5
  1010.   rm -rf conftest*
  1011.   CPP="${CC-cc} -E -traditional-cpp"
  1012.   cat > conftest.$ac_ext <<EOF
  1013. #line 1014 "configure"
  1014. #include "confdefs.h"
  1015. #include <assert.h>
  1016. Syntax Error
  1017. EOF
  1018. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1019. { (eval echo configure:1020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1020. ac_err=`grep -v '^ *+' conftest.out`
  1021. if test -z "$ac_err"; then
  1022.   :
  1023. else
  1024.   echo "$ac_err" >&5
  1025.   echo "configure: failed program was:" >&5
  1026.   cat conftest.$ac_ext >&5
  1027.   rm -rf conftest*
  1028.   CPP=/lib/cpp
  1029. fi
  1030. rm -f conftest*
  1031. fi
  1032. rm -f conftest*
  1033.   ac_cv_prog_CPP="$CPP"
  1034. fi
  1035.   CPP="$ac_cv_prog_CPP"
  1036. else
  1037.   ac_cv_prog_CPP="$CPP"
  1038. fi
  1039. echo "$ac_t""$CPP" 1>&6
  1040.             echo $ac_n "checking for AIX""... $ac_c" 1>&6
  1041. echo "configure:1042: checking for AIX" >&5
  1042. cat > conftest.$ac_ext <<EOF
  1043. #line 1044 "configure"
  1044. #include "confdefs.h"
  1045. #ifdef _AIX
  1046.   yes
  1047. #endif
  1048.  
  1049. EOF
  1050. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1051.   egrep "yes" >/dev/null 2>&1; then
  1052.   rm -rf conftest*
  1053.   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
  1054. #define _ALL_SOURCE 1
  1055. EOF
  1056.  
  1057. else
  1058.   rm -rf conftest*
  1059.   echo "$ac_t""no" 1>&6
  1060. fi
  1061. rm -f conftest*
  1062.  
  1063.  
  1064. ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
  1065. echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
  1066. echo "configure:1067: checking for minix/config.h" >&5
  1067. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1068.   echo $ac_n "(cached) $ac_c" 1>&6
  1069. else
  1070.   cat > conftest.$ac_ext <<EOF
  1071. #line 1072 "configure"
  1072. #include "confdefs.h"
  1073. #include <minix/config.h>
  1074. EOF
  1075. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1076. { (eval echo configure:1077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1077. ac_err=`grep -v '^ *+' conftest.out`
  1078. if test -z "$ac_err"; then
  1079.   rm -rf conftest*
  1080.   eval "ac_cv_header_$ac_safe=yes"
  1081. else
  1082.   echo "$ac_err" >&5
  1083.   echo "configure: failed program was:" >&5
  1084.   cat conftest.$ac_ext >&5
  1085.   rm -rf conftest*
  1086.   eval "ac_cv_header_$ac_safe=no"
  1087. fi
  1088. rm -f conftest*
  1089. fi
  1090. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1091.   echo "$ac_t""yes" 1>&6
  1092.   MINIX=yes
  1093. else
  1094.   echo "$ac_t""no" 1>&6
  1095. MINIX=
  1096. fi
  1097.  
  1098. if test "$MINIX" = yes; then
  1099.   cat >> confdefs.h <<\EOF
  1100. #define _POSIX_SOURCE 1
  1101. EOF
  1102.  
  1103.   cat >> confdefs.h <<\EOF
  1104. #define _POSIX_1_SOURCE 2
  1105. EOF
  1106.  
  1107.   cat >> confdefs.h <<\EOF
  1108. #define _MINIX 1
  1109. EOF
  1110.  
  1111. fi
  1112.  
  1113. echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
  1114. echo "configure:1115: checking for POSIXized ISC" >&5
  1115. if test -d /etc/conf/kconfig.d &&
  1116.   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  1117. then
  1118.   echo "$ac_t""yes" 1>&6
  1119.   ISC=yes # If later tests want to check for ISC.
  1120.   cat >> confdefs.h <<\EOF
  1121. #define _POSIX_SOURCE 1
  1122. EOF
  1123.  
  1124.   if test "$GCC" = yes; then
  1125.     CC="$CC -posix"
  1126.   else
  1127.     CC="$CC -Xp"
  1128.   fi
  1129. else
  1130.   echo "$ac_t""no" 1>&6
  1131.   ISC=
  1132. fi
  1133.  
  1134. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1135. echo "configure:1136: checking for working const" >&5
  1136. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1137.   echo $ac_n "(cached) $ac_c" 1>&6
  1138. else
  1139.   cat > conftest.$ac_ext <<EOF
  1140. #line 1141 "configure"
  1141. #include "confdefs.h"
  1142.  
  1143. int main() {
  1144.  
  1145. /* Ultrix mips cc rejects this.  */
  1146. typedef int charset[2]; const charset x;
  1147. /* SunOS 4.1.1 cc rejects this.  */
  1148. char const *const *ccp;
  1149. char **p;
  1150. /* NEC SVR4.0.2 mips cc rejects this.  */
  1151. struct point {int x, y;};
  1152. static struct point const zero = {0,0};
  1153. /* AIX XL C 1.02.0.0 rejects this.
  1154.    It does not let you subtract one const X* pointer from another in an arm
  1155.    of an if-expression whose if-part is not a constant expression */
  1156. const char *g = "string";
  1157. ccp = &g + (g ? g-g : 0);
  1158. /* HPUX 7.0 cc rejects these. */
  1159. ++ccp;
  1160. p = (char**) ccp;
  1161. ccp = (char const *const *) p;
  1162. { /* SCO 3.2v4 cc rejects this.  */
  1163.   char *t;
  1164.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  1165.  
  1166.   *t++ = 0;
  1167. }
  1168. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1169.   int x[] = {25, 17};
  1170.   const int *foo = &x[0];
  1171.   ++foo;
  1172. }
  1173. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1174.   typedef const int *iptr;
  1175.   iptr p = 0;
  1176.   ++p;
  1177. }
  1178. { /* AIX XL C 1.02.0.0 rejects this saying
  1179.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1180.   struct s { int j; const int *ap[3]; };
  1181.   struct s *b; b->j = 5;
  1182. }
  1183. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1184.   const int foo = 10;
  1185. }
  1186.  
  1187. ; return 0; }
  1188. EOF
  1189. if { (eval echo configure:1190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1190.   rm -rf conftest*
  1191.   ac_cv_c_const=yes
  1192. else
  1193.   echo "configure: failed program was:" >&5
  1194.   cat conftest.$ac_ext >&5
  1195.   rm -rf conftest*
  1196.   ac_cv_c_const=no
  1197. fi
  1198. rm -f conftest*
  1199. fi
  1200.  
  1201. echo "$ac_t""$ac_cv_c_const" 1>&6
  1202. if test $ac_cv_c_const = no; then
  1203.   cat >> confdefs.h <<\EOF
  1204. #define const 
  1205. EOF
  1206.  
  1207. fi
  1208.  
  1209. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  1210. echo "configure:1211: checking for ANSI C header files" >&5
  1211. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  1212.   echo $ac_n "(cached) $ac_c" 1>&6
  1213. else
  1214.   cat > conftest.$ac_ext <<EOF
  1215. #line 1216 "configure"
  1216. #include "confdefs.h"
  1217. #include <stdlib.h>
  1218. #include <stdarg.h>
  1219. #include <string.h>
  1220. #include <float.h>
  1221. EOF
  1222. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1223. { (eval echo configure:1224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1224. ac_err=`grep -v '^ *+' conftest.out`
  1225. if test -z "$ac_err"; then
  1226.   rm -rf conftest*
  1227.   ac_cv_header_stdc=yes
  1228. else
  1229.   echo "$ac_err" >&5
  1230.   echo "configure: failed program was:" >&5
  1231.   cat conftest.$ac_ext >&5
  1232.   rm -rf conftest*
  1233.   ac_cv_header_stdc=no
  1234. fi
  1235. rm -f conftest*
  1236.  
  1237. if test $ac_cv_header_stdc = yes; then
  1238.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  1239. cat > conftest.$ac_ext <<EOF
  1240. #line 1241 "configure"
  1241. #include "confdefs.h"
  1242. #include <string.h>
  1243. EOF
  1244. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1245.   egrep "memchr" >/dev/null 2>&1; then
  1246.   :
  1247. else
  1248.   rm -rf conftest*
  1249.   ac_cv_header_stdc=no
  1250. fi
  1251. rm -f conftest*
  1252.  
  1253. fi
  1254.  
  1255. if test $ac_cv_header_stdc = yes; then
  1256.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  1257. cat > conftest.$ac_ext <<EOF
  1258. #line 1259 "configure"
  1259. #include "confdefs.h"
  1260. #include <stdlib.h>
  1261. EOF
  1262. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1263.   egrep "free" >/dev/null 2>&1; then
  1264.   :
  1265. else
  1266.   rm -rf conftest*
  1267.   ac_cv_header_stdc=no
  1268. fi
  1269. rm -f conftest*
  1270.  
  1271. fi
  1272.  
  1273. if test $ac_cv_header_stdc = yes; then
  1274.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  1275. if test "$cross_compiling" = yes; then
  1276.   :
  1277. else
  1278.   cat > conftest.$ac_ext <<EOF
  1279. #line 1280 "configure"
  1280. #include "confdefs.h"
  1281. #include <ctype.h>
  1282. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  1283. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  1284. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  1285. int main () { int i; for (i = 0; i < 256; i++)
  1286. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  1287. exit (0); }
  1288.  
  1289. EOF
  1290. if { (eval echo configure:1291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1291. then
  1292.   :
  1293. else
  1294.   echo "configure: failed program was:" >&5
  1295.   cat conftest.$ac_ext >&5
  1296.   rm -fr conftest*
  1297.   ac_cv_header_stdc=no
  1298. fi
  1299. rm -fr conftest*
  1300. fi
  1301.  
  1302. fi
  1303. fi
  1304.  
  1305. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  1306. if test $ac_cv_header_stdc = yes; then
  1307.   cat >> confdefs.h <<\EOF
  1308. #define STDC_HEADERS 1
  1309. EOF
  1310.  
  1311. fi
  1312.  
  1313. for ac_hdr in memory.h unistd.h string.h
  1314. do
  1315. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1316. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1317. echo "configure:1318: checking for $ac_hdr" >&5
  1318. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1319.   echo $ac_n "(cached) $ac_c" 1>&6
  1320. else
  1321.   cat > conftest.$ac_ext <<EOF
  1322. #line 1323 "configure"
  1323. #include "confdefs.h"
  1324. #include <$ac_hdr>
  1325. EOF
  1326. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1327. { (eval echo configure:1328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1328. ac_err=`grep -v '^ *+' conftest.out`
  1329. if test -z "$ac_err"; then
  1330.   rm -rf conftest*
  1331.   eval "ac_cv_header_$ac_safe=yes"
  1332. else
  1333.   echo "$ac_err" >&5
  1334.   echo "configure: failed program was:" >&5
  1335.   cat conftest.$ac_ext >&5
  1336.   rm -rf conftest*
  1337.   eval "ac_cv_header_$ac_safe=no"
  1338. fi
  1339. rm -f conftest*
  1340. fi
  1341. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1342.   echo "$ac_t""yes" 1>&6
  1343.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1344.   cat >> confdefs.h <<EOF
  1345. #define $ac_tr_hdr 1
  1346. EOF
  1347.  
  1348. else
  1349.   echo "$ac_t""no" 1>&6
  1350. fi
  1351. done
  1352.  
  1353. ac_header_dirent=no
  1354. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
  1355. do
  1356. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1357. echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
  1358. echo "configure:1359: checking for $ac_hdr that defines DIR" >&5
  1359. if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
  1360.   echo $ac_n "(cached) $ac_c" 1>&6
  1361. else
  1362.   cat > conftest.$ac_ext <<EOF
  1363. #line 1364 "configure"
  1364. #include "confdefs.h"
  1365. #include <sys/types.h>
  1366. #include <$ac_hdr>
  1367. int main() {
  1368. DIR *dirp = 0;
  1369. ; return 0; }
  1370. EOF
  1371. if { (eval echo configure:1372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1372.   rm -rf conftest*
  1373.   eval "ac_cv_header_dirent_$ac_safe=yes"
  1374. else
  1375.   echo "configure: failed program was:" >&5
  1376.   cat conftest.$ac_ext >&5
  1377.   rm -rf conftest*
  1378.   eval "ac_cv_header_dirent_$ac_safe=no"
  1379. fi
  1380. rm -f conftest*
  1381. fi
  1382. if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
  1383.   echo "$ac_t""yes" 1>&6
  1384.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1385.   cat >> confdefs.h <<EOF
  1386. #define $ac_tr_hdr 1
  1387. EOF
  1388.  ac_header_dirent=$ac_hdr; break
  1389. else
  1390.   echo "$ac_t""no" 1>&6
  1391. fi
  1392. done
  1393. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  1394. if test $ac_header_dirent = dirent.h; then
  1395. echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
  1396. echo "configure:1397: checking for opendir in -ldir" >&5
  1397. ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
  1398. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1399.   echo $ac_n "(cached) $ac_c" 1>&6
  1400. else
  1401.   ac_save_LIBS="$LIBS"
  1402. LIBS="-ldir  $LIBS"
  1403. cat > conftest.$ac_ext <<EOF
  1404. #line 1405 "configure"
  1405. #include "confdefs.h"
  1406. /* Override any gcc2 internal prototype to avoid an error.  */
  1407. /* We use char because int might match the return type of a gcc2
  1408.     builtin and then its argument prototype would still apply.  */
  1409. char opendir();
  1410.  
  1411. int main() {
  1412. opendir()
  1413. ; return 0; }
  1414. EOF
  1415. if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1416.   rm -rf conftest*
  1417.   eval "ac_cv_lib_$ac_lib_var=yes"
  1418. else
  1419.   echo "configure: failed program was:" >&5
  1420.   cat conftest.$ac_ext >&5
  1421.   rm -rf conftest*
  1422.   eval "ac_cv_lib_$ac_lib_var=no"
  1423. fi
  1424. rm -f conftest*
  1425. LIBS="$ac_save_LIBS"
  1426.  
  1427. fi
  1428. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1429.   echo "$ac_t""yes" 1>&6
  1430.   LIBS="$LIBS -ldir"
  1431. else
  1432.   echo "$ac_t""no" 1>&6
  1433. fi
  1434.  
  1435. else
  1436. echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
  1437. echo "configure:1438: checking for opendir in -lx" >&5
  1438. ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
  1439. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1440.   echo $ac_n "(cached) $ac_c" 1>&6
  1441. else
  1442.   ac_save_LIBS="$LIBS"
  1443. LIBS="-lx  $LIBS"
  1444. cat > conftest.$ac_ext <<EOF
  1445. #line 1446 "configure"
  1446. #include "confdefs.h"
  1447. /* Override any gcc2 internal prototype to avoid an error.  */
  1448. /* We use char because int might match the return type of a gcc2
  1449.     builtin and then its argument prototype would still apply.  */
  1450. char opendir();
  1451.  
  1452. int main() {
  1453. opendir()
  1454. ; return 0; }
  1455. EOF
  1456. if { (eval echo configure:1457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1457.   rm -rf conftest*
  1458.   eval "ac_cv_lib_$ac_lib_var=yes"
  1459. else
  1460.   echo "configure: failed program was:" >&5
  1461.   cat conftest.$ac_ext >&5
  1462.   rm -rf conftest*
  1463.   eval "ac_cv_lib_$ac_lib_var=no"
  1464. fi
  1465. rm -f conftest*
  1466. LIBS="$ac_save_LIBS"
  1467.  
  1468. fi
  1469. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1470.   echo "$ac_t""yes" 1>&6
  1471.   LIBS="$LIBS -lx"
  1472. else
  1473.   echo "$ac_t""no" 1>&6
  1474. fi
  1475.  
  1476. fi
  1477.  
  1478. echo $ac_n "checking whether closedir returns void""... $ac_c" 1>&6
  1479. echo "configure:1480: checking whether closedir returns void" >&5
  1480. if eval "test \"`echo '$''{'ac_cv_func_closedir_void'+set}'`\" = set"; then
  1481.   echo $ac_n "(cached) $ac_c" 1>&6
  1482. else
  1483.   if test "$cross_compiling" = yes; then
  1484.   ac_cv_func_closedir_void=yes
  1485. else
  1486.   cat > conftest.$ac_ext <<EOF
  1487. #line 1488 "configure"
  1488. #include "confdefs.h"
  1489. #include <sys/types.h>
  1490. #include <$ac_header_dirent>
  1491. int closedir(); main() { exit(closedir(opendir(".")) != 0); }
  1492. EOF
  1493. if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1494. then
  1495.   ac_cv_func_closedir_void=no
  1496. else
  1497.   echo "configure: failed program was:" >&5
  1498.   cat conftest.$ac_ext >&5
  1499.   rm -fr conftest*
  1500.   ac_cv_func_closedir_void=yes
  1501. fi
  1502. rm -fr conftest*
  1503. fi
  1504.  
  1505. fi
  1506.  
  1507. echo "$ac_t""$ac_cv_func_closedir_void" 1>&6
  1508. if test $ac_cv_func_closedir_void = yes; then
  1509.   cat >> confdefs.h <<\EOF
  1510. #define CLOSEDIR_VOID 1
  1511. EOF
  1512.  
  1513. fi
  1514.  
  1515. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  1516. # for constant arguments.  Useless!
  1517. echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
  1518. echo "configure:1519: checking for working alloca.h" >&5
  1519. if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
  1520.   echo $ac_n "(cached) $ac_c" 1>&6
  1521. else
  1522.   cat > conftest.$ac_ext <<EOF
  1523. #line 1524 "configure"
  1524. #include "confdefs.h"
  1525. #include <alloca.h>
  1526. int main() {
  1527. char *p = alloca(2 * sizeof(int));
  1528. ; return 0; }
  1529. EOF
  1530. if { (eval echo configure:1531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1531.   rm -rf conftest*
  1532.   ac_cv_header_alloca_h=yes
  1533. else
  1534.   echo "configure: failed program was:" >&5
  1535.   cat conftest.$ac_ext >&5
  1536.   rm -rf conftest*
  1537.   ac_cv_header_alloca_h=no
  1538. fi
  1539. rm -f conftest*
  1540. fi
  1541.  
  1542. echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
  1543. if test $ac_cv_header_alloca_h = yes; then
  1544.   cat >> confdefs.h <<\EOF
  1545. #define HAVE_ALLOCA_H 1
  1546. EOF
  1547.  
  1548. fi
  1549.  
  1550. echo $ac_n "checking for alloca""... $ac_c" 1>&6
  1551. echo "configure:1552: checking for alloca" >&5
  1552. if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
  1553.   echo $ac_n "(cached) $ac_c" 1>&6
  1554. else
  1555.   cat > conftest.$ac_ext <<EOF
  1556. #line 1557 "configure"
  1557. #include "confdefs.h"
  1558.  
  1559. #ifdef __GNUC__
  1560. # define alloca __builtin_alloca
  1561. #else
  1562. # if HAVE_ALLOCA_H
  1563. #  include <alloca.h>
  1564. # else
  1565. #  ifdef _AIX
  1566.  #pragma alloca
  1567. #  else
  1568. #   ifndef alloca /* predefined by HP cc +Olibcalls */
  1569. char *alloca ();
  1570. #   endif
  1571. #  endif
  1572. # endif
  1573. #endif
  1574.  
  1575. int main() {
  1576. char *p = (char *) alloca(1);
  1577. ; return 0; }
  1578. EOF
  1579. if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1580.   rm -rf conftest*
  1581.   ac_cv_func_alloca_works=yes
  1582. else
  1583.   echo "configure: failed program was:" >&5
  1584.   cat conftest.$ac_ext >&5
  1585.   rm -rf conftest*
  1586.   ac_cv_func_alloca_works=no
  1587. fi
  1588. rm -f conftest*
  1589. fi
  1590.  
  1591. echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
  1592. if test $ac_cv_func_alloca_works = yes; then
  1593.   cat >> confdefs.h <<\EOF
  1594. #define HAVE_ALLOCA 1
  1595. EOF
  1596.  
  1597. fi
  1598.  
  1599. if test $ac_cv_func_alloca_works = no; then
  1600.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  1601.   # that cause trouble.  Some versions do not even contain alloca or
  1602.   # contain a buggy version.  If you still want to use their alloca,
  1603.   # use ar to extract alloca.o from them instead of compiling alloca.c.
  1604.   ALLOCA=alloca.o
  1605.   cat >> confdefs.h <<\EOF
  1606. #define C_ALLOCA 1
  1607. EOF
  1608.  
  1609.  
  1610. echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
  1611. echo "configure:1612: checking whether alloca needs Cray hooks" >&5
  1612. if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
  1613.   echo $ac_n "(cached) $ac_c" 1>&6
  1614. else
  1615.   cat > conftest.$ac_ext <<EOF
  1616. #line 1617 "configure"
  1617. #include "confdefs.h"
  1618. #if defined(CRAY) && ! defined(CRAY2)
  1619. webecray
  1620. #else
  1621. wenotbecray
  1622. #endif
  1623.  
  1624. EOF
  1625. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1626.   egrep "webecray" >/dev/null 2>&1; then
  1627.   rm -rf conftest*
  1628.   ac_cv_os_cray=yes
  1629. else
  1630.   rm -rf conftest*
  1631.   ac_cv_os_cray=no
  1632. fi
  1633. rm -f conftest*
  1634.  
  1635. fi
  1636.  
  1637. echo "$ac_t""$ac_cv_os_cray" 1>&6
  1638. if test $ac_cv_os_cray = yes; then
  1639. for ac_func in _getb67 GETB67 getb67; do
  1640.   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1641. echo "configure:1642: checking for $ac_func" >&5
  1642. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1643.   echo $ac_n "(cached) $ac_c" 1>&6
  1644. else
  1645.   cat > conftest.$ac_ext <<EOF
  1646. #line 1647 "configure"
  1647. #include "confdefs.h"
  1648. /* System header to define __stub macros and hopefully few prototypes,
  1649.     which can conflict with char $ac_func(); below.  */
  1650. #include <assert.h>
  1651. /* Override any gcc2 internal prototype to avoid an error.  */
  1652. /* We use char because int might match the return type of a gcc2
  1653.     builtin and then its argument prototype would still apply.  */
  1654. char $ac_func();
  1655.  
  1656. int main() {
  1657.  
  1658. /* The GNU C library defines this for functions which it implements
  1659.     to always fail with ENOSYS.  Some functions are actually named
  1660.     something starting with __ and the normal name is an alias.  */
  1661. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1662. choke me
  1663. #else
  1664. $ac_func();
  1665. #endif
  1666.  
  1667. ; return 0; }
  1668. EOF
  1669. if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1670.   rm -rf conftest*
  1671.   eval "ac_cv_func_$ac_func=yes"
  1672. else
  1673.   echo "configure: failed program was:" >&5
  1674.   cat conftest.$ac_ext >&5
  1675.   rm -rf conftest*
  1676.   eval "ac_cv_func_$ac_func=no"
  1677. fi
  1678. rm -f conftest*
  1679. fi
  1680.  
  1681. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1682.   echo "$ac_t""yes" 1>&6
  1683.   cat >> confdefs.h <<EOF
  1684. #define CRAY_STACKSEG_END $ac_func
  1685. EOF
  1686.  
  1687.   break
  1688. else
  1689.   echo "$ac_t""no" 1>&6
  1690. fi
  1691.  
  1692. done
  1693. fi
  1694.  
  1695. echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
  1696. echo "configure:1697: checking stack direction for C alloca" >&5
  1697. if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
  1698.   echo $ac_n "(cached) $ac_c" 1>&6
  1699. else
  1700.   if test "$cross_compiling" = yes; then
  1701.   ac_cv_c_stack_direction=0
  1702. else
  1703.   cat > conftest.$ac_ext <<EOF
  1704. #line 1705 "configure"
  1705. #include "confdefs.h"
  1706. find_stack_direction ()
  1707. {
  1708.   static char *addr = 0;
  1709.   auto char dummy;
  1710.   if (addr == 0)
  1711.     {
  1712.       addr = &dummy;
  1713.       return find_stack_direction ();
  1714.     }
  1715.   else
  1716.     return (&dummy > addr) ? 1 : -1;
  1717. }
  1718. main ()
  1719. {
  1720.   exit (find_stack_direction() < 0);
  1721. }
  1722. EOF
  1723. if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1724. then
  1725.   ac_cv_c_stack_direction=1
  1726. else
  1727.   echo "configure: failed program was:" >&5
  1728.   cat conftest.$ac_ext >&5
  1729.   rm -fr conftest*
  1730.   ac_cv_c_stack_direction=-1
  1731. fi
  1732. rm -fr conftest*
  1733. fi
  1734.  
  1735. fi
  1736.  
  1737. echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
  1738. cat >> confdefs.h <<EOF
  1739. #define STACK_DIRECTION $ac_cv_c_stack_direction
  1740. EOF
  1741.  
  1742. fi
  1743.  
  1744. echo $ac_n "checking for working strcoll""... $ac_c" 1>&6
  1745. echo "configure:1746: checking for working strcoll" >&5
  1746. if eval "test \"`echo '$''{'ac_cv_func_strcoll_works'+set}'`\" = set"; then
  1747.   echo $ac_n "(cached) $ac_c" 1>&6
  1748. else
  1749.   if test "$cross_compiling" = yes; then
  1750.   ac_cv_func_strcoll_works=no
  1751. else
  1752.   cat > conftest.$ac_ext <<EOF
  1753. #line 1754 "configure"
  1754. #include "confdefs.h"
  1755. #include <string.h>
  1756. main ()
  1757. {
  1758.   exit (strcoll ("abc", "def") >= 0 ||
  1759.     strcoll ("ABC", "DEF") >= 0 ||
  1760.     strcoll ("123", "456") >= 0);
  1761. }
  1762. EOF
  1763. if { (eval echo configure:1764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1764. then
  1765.   ac_cv_func_strcoll_works=yes
  1766. else
  1767.   echo "configure: failed program was:" >&5
  1768.   cat conftest.$ac_ext >&5
  1769.   rm -fr conftest*
  1770.   ac_cv_func_strcoll_works=no
  1771. fi
  1772. rm -fr conftest*
  1773. fi
  1774.  
  1775. fi
  1776.  
  1777. echo "$ac_t""$ac_cv_func_strcoll_works" 1>&6
  1778. if test $ac_cv_func_strcoll_works = yes; then
  1779.   cat >> confdefs.h <<\EOF
  1780. #define HAVE_STRCOLL 1
  1781. EOF
  1782.  
  1783. fi
  1784.  
  1785. trap '' 1 2 15
  1786. cat > confcache <<\EOF
  1787. # This file is a shell script that caches the results of configure
  1788. # tests run on this system so they can be shared between configure
  1789. # scripts and configure runs.  It is not useful on other systems.
  1790. # If it contains results you don't want to keep, you may remove or edit it.
  1791. #
  1792. # By default, configure uses ./config.cache as the cache file,
  1793. # creating it if it does not exist already.  You can give configure
  1794. # the --cache-file=FILE option to use a different cache file; that is
  1795. # what configure does when it calls configure scripts in
  1796. # subdirectories, so they share the cache.
  1797. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1798. # config.status only pays attention to the cache file if you give it the
  1799. # --recheck option to rerun configure.
  1800. #
  1801. EOF
  1802. # The following way of writing the cache mishandles newlines in values,
  1803. # but we know of no workaround that is simple, portable, and efficient.
  1804. # So, don't put newlines in cache variables' values.
  1805. # Ultrix sh set writes to stderr and can't be redirected directly,
  1806. # and sets the high bit in the cache file unless we assign to the vars.
  1807. (set) 2>&1 |
  1808.   case `(ac_space=' '; set) 2>&1` in
  1809.   *ac_space=\ *)
  1810.     # `set' does not quote correctly, so add quotes (double-quote substitution
  1811.     # turns \\\\ into \\, and sed turns \\ into \).
  1812.     sed -n \
  1813.       -e "s/'/'\\\\''/g" \
  1814.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1815.     ;;
  1816.   *)
  1817.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  1818.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1819.     ;;
  1820.   esac >> confcache
  1821. if cmp -s $cache_file confcache; then
  1822.   :
  1823. else
  1824.   if test -w $cache_file; then
  1825.     echo "updating cache $cache_file"
  1826.     cat confcache > $cache_file
  1827.   else
  1828.     echo "not updating unwritable cache $cache_file"
  1829.   fi
  1830. fi
  1831. rm -f confcache
  1832.  
  1833. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1834.  
  1835. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1836. # Let make expand exec_prefix.
  1837. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1838.  
  1839. # Any assignment to VPATH causes Sun make to only execute
  1840. # the first set of double-colon rules, so remove it if not needed.
  1841. # If there is a colon in the path, we need to keep it.
  1842. if test "x$srcdir" = x.; then
  1843.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  1844. fi
  1845.  
  1846. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1847.  
  1848. # Transform confdefs.h into DEFS.
  1849. # Protect against shell expansion while executing Makefile rules.
  1850. # Protect against Makefile macro expansion.
  1851. cat > conftest.defs <<\EOF
  1852. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
  1853. s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
  1854. s%\[%\\&%g
  1855. s%\]%\\&%g
  1856. s%\$%$$%g
  1857. EOF
  1858. DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
  1859. rm -f conftest.defs
  1860.  
  1861.  
  1862. # Without the "./", some shells look in PATH for config.status.
  1863. : ${CONFIG_STATUS=./config.status}
  1864.  
  1865. echo creating $CONFIG_STATUS
  1866. rm -f $CONFIG_STATUS
  1867. cat > $CONFIG_STATUS <<EOF
  1868. #! /bin/sh
  1869. # Generated automatically by configure.
  1870. # Run this file to recreate the current configuration.
  1871. # This directory was configured as follows,
  1872. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1873. #
  1874. # $0 $ac_configure_args
  1875. #
  1876. # Compiler output produced by configure, useful for debugging
  1877. # configure, is in ./config.log if it exists.
  1878.  
  1879. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1880. for ac_option
  1881. do
  1882.   case "\$ac_option" in
  1883.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1884.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1885.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1886.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1887.     echo "$CONFIG_STATUS generated by autoconf version 2.12"
  1888.     exit 0 ;;
  1889.   -help | --help | --hel | --he | --h)
  1890.     echo "\$ac_cs_usage"; exit 0 ;;
  1891.   *) echo "\$ac_cs_usage"; exit 1 ;;
  1892.   esac
  1893. done
  1894.  
  1895. ac_given_srcdir=$srcdir
  1896. ac_given_INSTALL="$INSTALL"
  1897.  
  1898. trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1899. EOF
  1900. cat >> $CONFIG_STATUS <<EOF
  1901.  
  1902. # Protect against being on the right side of a sed subst in config.status.
  1903. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1904.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1905. $ac_vpsub
  1906. $extrasub
  1907. s%@CFLAGS@%$CFLAGS%g
  1908. s%@CPPFLAGS@%$CPPFLAGS%g
  1909. s%@CXXFLAGS@%$CXXFLAGS%g
  1910. s%@DEFS@%$DEFS%g
  1911. s%@LDFLAGS@%$LDFLAGS%g
  1912. s%@LIBS@%$LIBS%g
  1913. s%@exec_prefix@%$exec_prefix%g
  1914. s%@prefix@%$prefix%g
  1915. s%@program_transform_name@%$program_transform_name%g
  1916. s%@bindir@%$bindir%g
  1917. s%@sbindir@%$sbindir%g
  1918. s%@libexecdir@%$libexecdir%g
  1919. s%@datadir@%$datadir%g
  1920. s%@sysconfdir@%$sysconfdir%g
  1921. s%@sharedstatedir@%$sharedstatedir%g
  1922. s%@localstatedir@%$localstatedir%g
  1923. s%@libdir@%$libdir%g
  1924. s%@includedir@%$includedir%g
  1925. s%@oldincludedir@%$oldincludedir%g
  1926. s%@infodir@%$infodir%g
  1927. s%@mandir@%$mandir%g
  1928. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1929. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1930. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  1931. s%@PACKAGE@%$PACKAGE%g
  1932. s%@VERSION@%$VERSION%g
  1933. s%@ACLOCAL@%$ACLOCAL%g
  1934. s%@AUTOCONF@%$AUTOCONF%g
  1935. s%@AUTOMAKE@%$AUTOMAKE%g
  1936. s%@AUTOHEADER@%$AUTOHEADER%g
  1937. s%@MAKEINFO@%$MAKEINFO%g
  1938. s%@SET_MAKE@%$SET_MAKE%g
  1939. s%@CC@%$CC%g
  1940. s%@AR@%$AR%g
  1941. s%@RANLIB@%$RANLIB%g
  1942. s%@CPP@%$CPP%g
  1943. s%@ALLOCA@%$ALLOCA%g
  1944.  
  1945. CEOF
  1946. EOF
  1947.  
  1948. cat >> $CONFIG_STATUS <<\EOF
  1949.  
  1950. # Split the substitutions into bite-sized pieces for seds with
  1951. # small command number limits, like on Digital OSF/1 and HP-UX.
  1952. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1953. ac_file=1 # Number of current file.
  1954. ac_beg=1 # First line for current file.
  1955. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1956. ac_more_lines=:
  1957. ac_sed_cmds=""
  1958. while $ac_more_lines; do
  1959.   if test $ac_beg -gt 1; then
  1960.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1961.   else
  1962.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1963.   fi
  1964.   if test ! -s conftest.s$ac_file; then
  1965.     ac_more_lines=false
  1966.     rm -f conftest.s$ac_file
  1967.   else
  1968.     if test -z "$ac_sed_cmds"; then
  1969.       ac_sed_cmds="sed -f conftest.s$ac_file"
  1970.     else
  1971.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1972.     fi
  1973.     ac_file=`expr $ac_file + 1`
  1974.     ac_beg=$ac_end
  1975.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1976.   fi
  1977. done
  1978. if test -z "$ac_sed_cmds"; then
  1979.   ac_sed_cmds=cat
  1980. fi
  1981. EOF
  1982.  
  1983. cat >> $CONFIG_STATUS <<EOF
  1984.  
  1985. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1986. EOF
  1987. cat >> $CONFIG_STATUS <<\EOF
  1988. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1989.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1990.   case "$ac_file" in
  1991.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1992.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1993.   *) ac_file_in="${ac_file}.in" ;;
  1994.   esac
  1995.  
  1996.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1997.  
  1998.   # Remove last slash and all that follows it.  Not all systems have dirname.
  1999.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  2000.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  2001.     # The file is in a subdirectory.
  2002.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  2003.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  2004.     # A "../" for each directory in $ac_dir_suffix.
  2005.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  2006.   else
  2007.     ac_dir_suffix= ac_dots=
  2008.   fi
  2009.  
  2010.   case "$ac_given_srcdir" in
  2011.   .)  srcdir=.
  2012.       if test -z "$ac_dots"; then top_srcdir=.
  2013.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  2014.   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  2015.   *) # Relative path.
  2016.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  2017.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  2018.   esac
  2019.  
  2020.   case "$ac_given_INSTALL" in
  2021.   [/$]*) INSTALL="$ac_given_INSTALL" ;;
  2022.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  2023.   esac
  2024.  
  2025.   echo creating "$ac_file"
  2026.   rm -f "$ac_file"
  2027.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  2028.   case "$ac_file" in
  2029.   *Makefile*) ac_comsub="1i\\
  2030. # $configure_input" ;;
  2031.   *) ac_comsub= ;;
  2032.   esac
  2033.  
  2034.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  2035.   sed -e "$ac_comsub
  2036. s%@configure_input@%$configure_input%g
  2037. s%@srcdir@%$srcdir%g
  2038. s%@top_srcdir@%$top_srcdir%g
  2039. s%@INSTALL@%$INSTALL%g
  2040. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  2041. fi; done
  2042. rm -f conftest.s*
  2043.  
  2044. EOF
  2045. cat >> $CONFIG_STATUS <<EOF
  2046.  
  2047. EOF
  2048. cat >> $CONFIG_STATUS <<\EOF
  2049.  
  2050. exit 0
  2051. EOF
  2052. chmod +x $CONFIG_STATUS
  2053. rm -fr confdefs* $ac_clean_files
  2054. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  2055.  
  2056.